fix(hermes): enable model and reasoning controls - #5001
Draft
nicolasdmolina wants to merge 4 commits into
Draft
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Restore runner-global `_reasoning_config` only while this turn still owns the value it last observed after dispatch. Session-scoped overrides remain the transactional source of truth; a later writer is no longer overwritten on rollback.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a stacked follow-up to #4678. It targets
experiment/hermes-provider-ui, notmain, so the work can be reviewed or folded into the existing Hermes PR without creating a competing implementation.What Changed
turn.started.Why
#4678 establishes the Hermes gateway and agent UX, but the connected instance is still exposed as one opaque
hermesmodel and the bound composer cannot change model or reasoning. Hermes already has authenticated model inventory and session-scoped/modeland/reasoningsurfaces, so T3 can expose those choices without owning provider credentials or bypassing Hermes's runtime resolution.The transaction and lifecycle guards are necessary because a rejected turn must not leave a persisted half-switch behind, and a reconnect/rebuild must not erase a valid catalog or allow an old driver stream to overwrite its replacement.
UI Changes
Screenshots are still pending while this PR is in draft.
Verification
git diff --checkpassed.Checklist
Note
Enable per-session model and reasoning controls in the Hermes gateway adapter
models.list.request/models.list.responsemessages and optionalmodelSelection/reasoningEffortfields onturn.startandturn.started.HermesAdapternow applies model and reasoning selections only at fresh turn boundaries via Hermes session-scoped/modeland/reasoningcommands, verifies Hermes acknowledges the applied selections inturn.started, and compensates withturn.interruptif they don't match.HermesDriverperforms asynchronous, generation-scoped model catalog discovery without blocking snapshot reads;requiresNewThreadForModelChangeis nowfalse.ProviderRegistry.mergeProviderModelsretains the previous Hermes model catalog across pending or exhausted discovery snapshots, replacing it only on a completed catalog response.sessionModelSwitchcapability changes from"unsupported"to"in-session"for all Hermes sessions; clients that inspect this field will see changed behavior.📊 Macroscope summarized a5c57be. 13 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues
No issues evaluated.